package com.dgt.trade.service.impl;

import com.dgt.trade.dao.BankCardDao;
import com.dgt.trade.entitys.yifu.Banks;
import com.dgt.trade.entitys.yifu.bangding_banks;
import com.dgt.trade.service.BankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class BankCardServiceImpl implements BankCardService {

    @Autowired
    private BankCardDao bankCardDao;


    @Override
    public int insertBankCard(String bankName) {
        return bankCardDao.insertBankCard(bankName);
    }

    @Override
    public Banks selectBankCard() {
        return bankCardDao.selectBankCard();
    }

    @Override
    public int insertBankCardById(Map<String,String> map) {
        return bankCardDao.insertBankCardById(map);
    }

    @Override
    public bangding_banks selectBankCardById(String user_id) {
        return bankCardDao.selectBankCardById(user_id);
    }

    @Override
    public int deleteBankCardById(String user_id) {
        return bankCardDao.deleteBankCardById(user_id);
    }

    @Override
    public int updateBankCardById(Map<String, String> map) {
        return bankCardDao.updateBankCardById(map);
    }
}
